home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d21 / dvglue10.arc / TVKMOUSE.C < prev    next >
C/C++ Source or Header  |  1988-08-13  |  1KB  |  43 lines

  1. /*================================================*/
  2. /* TVKMOUSE.C                                     */
  3. /*                                                */
  4. /* (c) Copyright 1988 Ralf Brown                  */
  5. /*     All Rights Reserved                        */
  6. /* May be freely copied for noncommercial use,    */
  7. /* provided that this copyright notice remains    */
  8. /* intact and any changes are indicated in the    */
  9. /* comment blocks preceding functions             */
  10. /*================================================*/
  11.  
  12. #include "tvapi.h"
  13.  
  14. /*================================================*/
  15. /* TVqry_kmouse   are we using a keyboard mouse?  */
  16. /*   Ralf Brown 7/12/88                           */
  17. /*================================================*/
  18.  
  19. int pascal TVqry_kmouse(void)
  20. {
  21.    _AX = 0x102D ;
  22.    _BL = 0 ;
  23.    geninterrupt(0x15) ;
  24.    return _BL ;
  25. }
  26.  
  27. /*================================================*/
  28. /* TVapi_kmouse   turn keyboard mouse on or off   */
  29. /*   Ralf Brown 7/12/88                           */
  30. /*================================================*/
  31.  
  32. void pascal TVapi_kmouse(int active)
  33. {
  34.    if (active)
  35.       _BL = 1 ;
  36.    else
  37.       _BL = 2 ;
  38.    _AX = 0x102D ;
  39.    geninterrupt(0x15) ;
  40. }
  41.  
  42. /* End of TVKMOUSE.C */
  43.